package com.douxg.learning.springboot.resttemplate;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Auther douxg
 * @Date 2020/12/30 10:00
 */
//@Configuration
public class BeanConfig {
    /*@Bean
    @Primary
    @ConditionalOnProperty(value = "project.name", havingValue = "sub")
    public MainService createMainService() {
        return new SubServiceImpl();
    }

    @Bean
    @Primary
    @ConditionalOnProperty(value = "project.name", havingValue = "sub2")
    public MainService createMainService2() {
        return new Sub2ServiceImpl();
    }*/



}
